package com.pzb.goods.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.pzb.goods.mapper.GdFreightTemplateDataMapper;
import com.pzb.goods.domain.GdFreightTemplateData;
import com.pzb.goods.service.IGdFreightTemplateDataService;

/**
 * 模板数据Service业务层处理
 * 
 * @author Mr_Wu
 * @date 2021-12-06
 */
@Service
public class GdFreightTemplateDataServiceImpl implements IGdFreightTemplateDataService 
{
    @Autowired
    private GdFreightTemplateDataMapper gdFreightTemplateDataMapper;

    /**
     * 查询模板数据列表
     * 
     * @param gdFreightTemplateData 模板数据
     * @return 模板数据
     */
    @Override
    public List<GdFreightTemplateData> selectGdFreightTemplateDataList(GdFreightTemplateData gdFreightTemplateData)
    {
        return gdFreightTemplateDataMapper.selectGdFreightTemplateDataList(gdFreightTemplateData);
    }

    /**
     * 新增模板数据
     * 
     * @param gdFreightTemplateData 模板数据
     * @return 结果
     */
    @Override
    public int insertGdFreightTemplateData(GdFreightTemplateData gdFreightTemplateData)
    {
        return gdFreightTemplateDataMapper.insertGdFreightTemplateData(gdFreightTemplateData);
    }

    /**
     * 根据模板ID删除
     *
     * @param templateId 模板主键
     * @return 结果
     */
    @Override
    public int deleteGdFreightTemplateDataByTemplateId(Long templateId) {

        return gdFreightTemplateDataMapper.deleteGdFreightTemplateDataByTemplateId(templateId);
    }
}
